<%--
  Created by IntelliJ IDEA.
  User: cyy
  Date: 2020/3/7
  Time: 16:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.graduation.lastproject.entity.Business" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    Business businessInfo=(Business) request.getAttribute("entry");
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:set var="businessInfo" value="<%=businessInfo%>" />
<c:set var="ctx" value="<%=basePath%>"  />
<html>
<head>
    <meta charset="UTF-8">
    <link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/bootstrap/css/bootstrapValidator.min.css"  rel="stylesheet"/>
    <link rel="stylesheet" href="/static/toastr/toastr.min.css">

    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <script  src="/static/bootstrap/js/bootstrapValidator.js"></script>
    <script src="/static/toastr/toastr.min.js"></script>
    <script src="/static/js/business/register.js" ></script>
    <title></title>
    <style type="text/css">
        input{
            margin: 2px 0 0 2px;
            padding: 2px 0 0 2px;
        }
        .navbar{
            background-color: #DEB887;
        }
        img{
            width: 34px;
            height: 34px;
        }
        .form-horizontal .control-label{
            padding-top: 0px;
        }
    </style>
    <script type="text/javascript">
        var type='${type}';
        var ctx='${ctx}';
        var id='${businessInfo.id}'
        var oldbphone='${businessInfo.bphone}';
        console.info("/**/注册还是更新:"+type+"=============用户id:"+id)
    </script>

</head>
<body>
<nav class="navbar" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="home">
                <span class="glyphicon glyphicon-user" aria-hidden="true" ></span>
            </a>
            <span class="navbar-brand">欢迎注册</span>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="${ctx}business/index">首页</a>
                </li>
            </ul>
        </div>
    </div>
</nav>
<form class="form-horizontal center-block" role="form" id="yanzheng">
    <input type="hidden" name="id" value="${businessInfo.id}">
    <input type="hidden" name="oldbphone" value="${businessInfo.bphone}">
    <div class="form-group ">
        <label class="col-md-4 control-label"><img src="/static/img/register/user.png" />姓 &nbsp 名:</label>
        <div class="col-md-4">
            <input class="form-control" id="brealname"  name="brealname"
                   type="text" placeholder="请输入商家名" autocomplete="off" value="${businessInfo.brealname}"/>
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-4 control-label"> <img src="/static/img/register/phone.png" />手机号:</label>
        <div class="col-md-4">
            <input class="form-control" id="bphone" name="bphone"  type="tel" placeholder="可用作登录名" autocomplete="off" value="${businessInfo.bphone}"/>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-md-4 control-label"><img src="/static/img/register/password.png" />密 &nbsp 码:</label>
        <div class="col-md-4">
            <input class="form-control" id="bpassword" name="bpassword" type="password" placeholder="请输入密码" autocomplete="off" value="${businessInfo.bpassword}"/>
        </div>
    </div>

    <div class="form-group" id="pass">
        <label class="col-md-4 control-label"><img src="/static/img/register/password.png" />确 &nbsp 认:</label>
        <div class="col-md-4">
            <input class="form-control" id="repassword" name="repassword" type="password" placeholder="再次输入密码"autocomplete="off" value="${businessInfo.bpassword}" />
        </div>
    </div>

    <div class="form-group ">
        <label class="col-md-4 control-label"><img src="/static/img/register/email.png" />支付宝:</label>
        <div class="col-md-4">
            <input class="form-control" id="bzfbcard"  name="bzfbcard"  type="text" placeholder="请输入收款支付宝号"  autocomplete="off" value="${businessInfo.bzfbcard}"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-md-4 control-label"><img src="/static/img/register/email.png" />身份证:</label>
        <div class="col-md-4">
            <input class="form-control" id="bIdcard"  name="bIdcard"  type="text" placeholder="请输入法人身份证号"  autocomplete="off" value="${businessInfo.bIdcard}"/>
        </div>
    </div>
    <div class="form-group" id="prompt">
        <label class="col-md-4 control-label"><input  id="mustRadio" name="mustRadio"  type="radio"></label>
        <div class="col-md-4">
           <span style="font-size:12px;color:#bfbfbf">请遵守网络环境，一经发现言语过失、违规操作，账号将被拉黑</span>
        </div>
    </div>



    <div class="form-group" id="register">
        <label class="col-sm-2 control-label "> </label>
        <div class="col-sm-4">
          <%--  <input class="btn btn-default pull-right" id="" type="button" value="登录" />--%>
            <input class="btn btn-default pull-right"  id="btn-test" value="注册" />
        </div>
    </div>
    <div class="form-group" id="update">
        <label class="col-sm-2 control-label "> </label>
        <div class="col-sm-4">
            <%--<input class="btn btn-default pull-right" id="" type="button" value="登录" />--%>
            <input class="btn btn-default pull-right"  id="btn-update" value="更新">
        </div>
    </div>
</form>
</body>
</html>

